package org.example.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.web.multipart.MultipartFile;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Category implements Serializable {
    private static final long serialVersionUID = 1L; //完成序列化操作
    @TableId(type = IdType.AUTO,value = "category_id")
    private Integer category_id; // 类别ID
    @TableField(value = "category_name")
    private String category_name; // 分类名称
    @TableField(value = "icon")
    private String icon; // 分类图标URL
    @TableField(value = "link_url")
    private String link_url; // 跳转链接
    @TableField(value = "category_status")
    private Integer category_status; // 状态(0-被删除 1-正常)

    @TableField(exist = false)
    private MultipartFile icoImgFile;  //上传到oss的真是图片文件
}
